import VueRouter from 'vue-router'
import homepage from './subcom/tabar/home.vue'
import memberpage from './subcom/tabar/member.vue'
import shopcarpage from './subcom/tabar/shopcar.vue'
import searchpage from './subcom/tabar/search.vue'

// 3. 创建路由对象
var router = new VueRouter({
  routes: [
    {path:"/",redirect:"/home"},
    {path:"/home",component:homepage},
    {path:"/member",component:memberpage},
    {path:"/shopcar",component:shopcarpage},
    {path:"/search",component:searchpage},

  ],
  linkActiveClass : 'mui-active',
})

// 把路由对象暴露出去
export default router

